<template>
  <div>
    <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px">
      <el-row type="flex" justify="start" align="top" gutter="15">
        <el-form-item label="餐台号" prop="field110">
          <el-select v-model="formData.field110" placeholder="请选择餐台号" filterable clearable
            :style="{width: '100%'}">
            <el-option v-for="(item, index) in field110Options" :key="index" :label="item.label"
              :value="item.value" :disabled="item.disabled"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="餐台状态" prop="field109">
          <el-select v-model="formData.field109" placeholder="请选择餐台状态" filterable clearable
            :style="{width: '100%'}">
            <el-option v-for="(item, index) in field109Options" :key="index" :label="item.label"
              :value="item.value" :disabled="item.disabled"></el-option>
          </el-select>
        </el-form-item>
      </el-row>
      <el-row type="flex" justify="start" align="top" gutter="15">
        <el-form-item label="" prop="field113">
          <el-button type="primary" icon="el-icon-search" size="medium"> 主要按钮 </el-button>
        </el-form-item>
        <el-form-item label="" prop="field114">
          <el-button type="primary" icon="el-icon-search" size="medium"> 主要按钮 </el-button>
        </el-form-item>
      </el-row>
      <el-row type="flex" justify="start" align="top" gutter="15">
        <el-form-item label="" prop="field117">
          <el-button type="primary" icon="el-icon-search" size="medium"> 主要按钮 </el-button>
        </el-form-item>
        <el-form-item label="" prop="field116">
          <el-button type="primary" icon="el-icon-search" size="medium"> 主要按钮 </el-button>
        </el-form-item>
      </el-row>
      <el-row type="flex" justify="start" align="top" gutter="15">
        <el-form-item label="" prop="field120">
          <el-button type="primary" icon="el-icon-search" size="medium"> 主要按钮 </el-button>
        </el-form-item>
        <el-form-item label="" prop="field119">
          <el-button type="primary" icon="el-icon-search" size="medium"> 主要按钮 </el-button>
        </el-form-item>
      </el-row>
      <el-form-item size="large">
        <el-button type="primary" @click="submitForm">提交</el-button>
        <el-button @click="resetForm">重置</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>

export default {
  components: {},
  props: [],
  data() {
    return {
      formData: {
        field110: '',
        field109: '',
        field113: undefined,
        field114: undefined,
        field117: undefined,
        field116: undefined,
        field120: undefined,
        field119: undefined,
      },
      rules: {
        field110: [],
        field109: [],
      },
      field110Options: [{
        "label": "餐台1",
        "value": 1
      }, {
        "label": "餐台2",
        "value": 2
      }, {
        "label": "餐台3",
        "value": 3
      }],
      field109Options: [{
        "label": "占用",
        "value": "false"
      }, {
        "label": "空闲",
        "value": "true"
      }],
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    submitForm() {
      this.$refs['elForm'].validate(valid => {
        if (!valid) return
        // TODO 提交表单
      })
    },
    resetForm() {
      this.$refs['elForm'].resetFields()
    },
  }
}

</script>
<style>
</style>
